package com.yang.service;

import java.util.List;

import com.yang.entity.Roles;
import com.yang.model.Page;

public interface RoleService {
	
	public Roles createRole(Roles role);

	public Roles updateRole(Roles role);

	public void deleteRole(String roleId);

	public Roles findOne(String roleId);

	public List<Roles> findAll();

	/**
	 * 获取角色分页
	 * @param nowPage	当前页
	 * @param pageSize	页面大小
	 * @return
	 */
	public Page<Roles> getRolePage(String nowPage, String pageSize);
}
